import React, {Component} from 'react';
import '../../component/Questionnaire.css';


/**
 * 课题组1 本地数据的表格
 * @autuhor zm
 */
export default class ResultTable1 extends Component {


    render() {
        //定义input的value数组
        const data = this.props.group1Data;

        const hiddenData = "*****";//显示隐藏信息的占位符
        return (


            <div>
                <div className="first">
                    <h2 style={{textAlign: 'center'}}>***本底数据</h2><br/>
                    <table className="table5">

                        <th>ID：</th>
                        <td style={{width: '12.5%'}}>
                            {
                                data.projectId
                            }

                        </td>

                        <th>企业名称：</th>
                        <td style={{width: '12.5%'}}>

                            {
                                data.enterpriseName
                            }

                        </td>

                        <th>国家：</th>
                        <td style={{width: '12.5%'}}>
                            {data.country}
                        </td>

                        <th>省：</th>
                        <td style={{width: '12.5%'}}>
                            {data.province}
                        </td>


                    </table>
                    <table className="table6">
                        <tr>
                            <th>资源归类编码：</th>
                            <td style={{width: '12.5%'}}>
                                {data.resourceId}
                            </td>

                            <th>生产线编号：</th>
                            <td style={{width: '12.5%'}}>
                                {data.productionLine}
                            </td>

                            <th>熟料设计产能：</th>
                            <td style={{width: '12.5%'}}>
                                {data.designProductionCapacity}
                            </td>
                        </tr>
                    </table>
                </div>

                <div className="second">
                    <table border="3" className="table1">
                        <tr>
                            <th rowSpan='4' style={{width: '2%'}}>基<br/>本<br/>信<br/>息</th>
                            <th rowSpan='2' style={{width: '10%'}}>信息</th>
                            <td>保存单位</td>
                            <td>资源提供者</td>
                            <td>资源提供时间</td>
                            <td>共享方式</td>
                            <td>获取途径</td>
                            <td>联系人</td>
                        </tr>
                        <tr>
                            <td>
                                {data.saveDepartment}
                            </td>
                            <td>
                                {data.resourceProvide}
                            </td>
                            <td>
                                {data.resourceProvideTime}
                            </td>
                            <td>
                                {data.sharingMode}
                            </td>
                            <td>
                                {data.accessWay}
                            </td>
                            <td rowSpan="3">
                                {data.linkman}
                            </td>
                        </tr>

                        <tr>
                            <th rowSpan='2' style={{width: '10%'}}>信息</th>
                            <td>
                                单位
                            </td>
                            <td>
                                地址
                            </td>
                            <td>
                                邮编
                            </td>
                            <td>
                                电话
                            </td>
                            <td style={{width: '20%'}}>
                                E-mail
                            </td>
                        </tr>

                        <tr>
                            <td>
                                {data.department}
                            </td>
                            <td>
                                {data.address}
                            </td>
                            <td>
                                {data.postalCode}
                            </td>
                            <td>
                                {data.phone}
                            </td>
                            <td>
                                {data.email}
                            </td>
                        </tr>

                    </table>
                    <table border="3" className="table2">
                        <tr>
                            <th rowSpan='3'>原料消耗构成（万吨）</th>
                            <th>项目</th>
                            <th>熟料烧成<br/>用钙质原料</th>
                            <th>熟料烧成<br/>用硅质原料</th>
                            <th>天然石膏</th>
                            <th>固体废弃物</th>
                            <th>煤炭</th>
                        </tr>
                        <tr>
                            <th>单位</th>
                            <td>万吨</td>
                            <td>万吨</td>
                            <td>万吨</td>
                            <td>万吨</td>
                            <td>万吨</td>
                        </tr>
                        <tr>
                            <th>数值</th>
                            <td>
                                {data.shouliao_sc_gaizhiyl==-1?'':data.shouliao_sc_gaizhiyl}
                            </td>
                            <td>
                                {data.shouliao_sc_guizhiyll==-1?'':data.shouliao_sc_guizhiyll}
                            </td>
                            <td>
                                {data.tianran_sg==-1?'':data.tianran_sg}
                            </td>
                            <td>
                                {data.guti_fqw==-1?'':data.guti_fqw}
                            </td>
                            <td>
                                {data.meitan==-1?'':data.meitan}
                            </td>
                        </tr>
                    </table>
                    <table border="3" className="table3">
                        <tr>
                            <th rowSpan='3'>能源消耗</th>
                            <th>项目</th>
                            <th>可比熟料<br/>综合煤耗</th>
                            <th>可比水泥<br/>综合电耗</th>
                            <th>单位熟料<br/>余热发电量</th>
                            <th rowSpan='3'>污染物排放</th>
                            <th>窑尾污染物粉<br/>尘排放浓度范围</th>
                            <th>污染物NOx<br/>排放浓度范围</th>
                            <th rowSpan='3'>窑炉装备与工艺</th>
                            <th>窑炉</th>
                            <th>水泥磨工艺</th>
                        </tr>
                        <tr>
                            <th>单位</th>
                            <th>煤耗单位</th>
                            <th>kw/h</th>
                            <th>kw/h</th>
                            <th>mg/m3</th>
                            <th>mg/m3</th>
                            <th>m</th>
                            <th>~</th>
                        </tr>
                        <tr>
                            <th>数值</th>
                            <td>
                                {data.kebi_shouliao_zhmh==-1?'':data.kebi_shouliao_zhmh}
                            </td>
                            <td>
                                {data.kebi_shouliao_zhdh==-1?'':data.kebi_shouliao_zhdh}
                            </td>
                            <td>
                                {data.danwei_shouliao_yure_fdl==-1?'':data.danwei_shouliao_yure_fdl}
                            </td>
                            <td>
                                {data.yaowei_wuranwu_fcpf_ndfw==-1?'':data.yaowei_wuranwu_fcpf_ndfw}
                            </td>
                            <td>
                                {data.wuranwu_NOX_pf_ndfw==-1?'':data.wuranwu_NOX_pf_ndfw}
                            </td>
                            <td>
                                {data.yaolu==-1?'':data.yaolu}
                            </td>
                            <td>
                                {data.shinimo_gy}
                            </td>
                        </tr>
                    </table>
                </div>
            </div>

        )
    }

}




